import loading from "./modules/loading";
import { clickoutside } from "./modules/clickoutside";

const importDirective = Vue => {
  /**
   * loading指令 v-loading="options"
   * options = {
   *  value:    /在输入框中使用v-model绑定的值/,
   *  success:  /复制成功后的回调/,
   *  error:    /复制失败后的回调/
   * }
   */
  Vue.directive("loading", loading);

  /**
   *v-clickoutside
   */
  Vue.directive("clickoutside", clickoutside);
};

export default importDirective;
